﻿using System;
using Zeus.Thunder.Core;

namespace SharpTrainer.Basic
{
    class StringContain : ITestCase
    {
        public void Run()
        {
            string dstStr = "abcde";
            string srcStr1 = "bcd";
            string srcStr2 = "abc";
            string srcStr3 = "ade";
            string srcStr4 = "fcg";

            Console.WriteLine("Dest Str: " + dstStr);

            Console.WriteLine("Src Str1: " + srcStr1);
            Console.WriteLine("match: " + dstStr.Contains(srcStr1).ToString());

            Console.WriteLine("Src Str2: " + srcStr2);
            Console.WriteLine("match: " + dstStr.Contains(srcStr2).ToString());

            Console.WriteLine("Src Str3: " + srcStr3);
            Console.WriteLine("match: " + dstStr.Contains(srcStr3).ToString());

            Console.WriteLine("Src Str4: " + srcStr4);
            Console.WriteLine("match: " + dstStr.Contains(srcStr4).ToString());

            Console.ReadLine();
        }
    }
}
